Statements and Functions > Comments

Comments

Documentation Symbols

Syntax samples

#

//

/*...*/

Components

#

The pound sign signals the start of a one-line comment. ProModel will ignore any characters on the rest of the line.

//

Two forward slashes signal the start of a one-line comment. ProModel will ignore any characters on the rest of the line. This symbol works exactly the same as the # sign.

/*...*/

A slash followed by an asterisk signals the start of a multi-line comment. ProModel will ignore all characters after the “/*” until it finds an asterisk followed by a slash, “*/”. Use this type of comment for long explanations and to prevent ProModel from executing long portions of logic during debugging. Comments using // or # may be nested inside multi-line comments.

Description

Comments are notes to the modeler inside blocks of logic. ProModel ignores them, but they can be particularly useful to explain logic when more than one person will be using a model.

Valid In

Any logic.

Example

The logic below has several notes to explain it. Additionally, ProModel ignores the ELSE statement and the ELSE statement’s block.

IF Parts_Available > Attr2 THEN

{//Parts to join is stored in Attr2

JOIN Attr2 #Join the number of parts

# needed only if there are

# enough parts available.

WAIT Attr1

}

/* ELSE

{ //Start operation

INC Var1

WAIT Attr3

} */


© 2012 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com